const path = require('path')

module.exports = {
  devServer: {
    port: 8080,
    proxy: {
      '/api': {
        target: 'http://192.168.230.20:8888',
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  },
  css: {
    loaderOptions: {
      sass: {
        sassOptions: {
          indentedSyntax: true
        }
      },
      scss: {
        prependData: `@import "@/styles/variables.scss";`
      }
    }
  },
  configureWebpack: {
    devtool: 'source-map'
  }
} 